layui.define(['form','resAjax','openLayer'],function (exports) {
    var $ = layui.$,
        form = layui.form,
        resAjax =layui.resAjax,
        openLayer = layui.openLayer;
    var result="0";
    var submitform = {
        form:function(url,data,mode){
                // 请求后台
                var obj=resAjax.render({
                    url:url, //url
                    type:"post",//类型
                    data:data
                });
                openLayer.popup(obj);
                return result;

        },

    };
    exports('submitform', submitform);
});

